package com.it.service;

import com.it.bean.Employee;
import com.it.dao.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 一颗大菠菜
 * @create 2020-08-15 15:22
 */
@Service
public class EmployeeService {

    @Autowired
    EmployeeMapper employeeMapper;

    //查询 所有员工
    public List<Employee> getAll(){
        return employeeMapper.selectByExampleWithDept(null);

    }

}
